User Profile
johnmsch
Copper Contributor
Joined Nov 25, 2019
User Widgets
Recent Discussions
Re: Compress-Archive Not Working?
Thank you LainRobertson I had read through that article and completely missed the obvious answer: This: Compress-Archive -Path 'D:\abc\' -DestinationPath 'D:\xyz\abc.zip' Instead of this: Compress-Archive -Path 'D:\abc\*.*' -DestinationPath 'D:\xyz\abc.zip' Is working perfectly. In fact, the folder D:\abc is indeed empty, but there are multiple folders on the next level. If I may, I have two more questions. I believe I read somewhere that using this compression method is limited to 2gb file sizes? Is there a way to remove files from a compressed file leaving everything else in tact? Thanks again for your quick answer and that excellent article!4.4KViews0likes2CommentsCompress-Archive Not Working?
I'm running Powershell version 5.1.17763.4974 on a server with Windows Server 2019 Datacenter v10. Been using PS for years but trying Compress-Archive for the first time. Tried building a script which didn't work. When executing the script, it immediately goes right back to the PS prompt and nothing happens. Trying to execute a simple command directly with something like this: Compress-Archive -Path 'D:\abc\*.*' -DestinationPath 'D:\xyz\abc.zip' Same thing happens. Goes immediately back to the PS prompt. I'm running PS as administrator. What am I missing?5.5KViews0likes4CommentsRe: Write array values to Event Viewer?
Harm_Veenstra Here's the PS code I've been using for the past 6-7 years for the query: # # SQL statement to find the active primary node # $sqlQuery = "Select distinct ags.primary_replica From sys.dm_hadr_availability_replica_states ars Inner Join sys.dm_hadr_availability_group_states ags On ags.group_id = ars.group_id Where ars.role_desc = 'PRIMARY'" # # Run the SQL query against the listener # $SourceDatabase = "master" Push-Location $activeNode = invoke-sqlcmd -ServerInstance $AOListener -Database $SourceDatabase -Query $sqlQuery Pop-Location2.7KViews0likes1CommentRe: Write array values to Event Viewer?
Harm_Veenstra Sorry for the delay. Changed the code to this: $activenodeOut = $activenodeOut+ ($activenode[$i].ItemArray -join ",") Write-EventLog –LogName Application –Source eRxAppServer –EntryType Information –EventID 920 –Message "Active Node List:$activenodeOut" Now all I see is this line in Event Viewer: Active Node List:2.9KViews0likes7CommentsWrite array values to Event Viewer?
Trying to debug an old PowerShell script that contains a small array, containing 5 -7 entries, each about 10-15 bytes long). I'm trying to write the contents of the array ($activeNode) to the Event Viewer. I tried this: Write-EventLog –LogName Application –Source AppServer –EntryType Information –EventID 920 –Message "Active Node List:$activeNode" but the entry in Event Viewer comes out like this: Active Node List:System.Data.DataRow I know I'm missing something obvious. How do I get the actual contents of the $activeNode array to show up?3.6KViews0likes19CommentsRe: Using 2 instances of Teams
TomArbuthnot Thanks so much for the reply. My main account is my company A. I have a separate guest account at company B, using a new email address provided by that company. Here's the screenshot of accessing company B in the Teams desktop app. Notice for the the team I'm accessing here I can see the General, Posts, Files and Wiki sections: Now, using that same logon to the web app, that team is not listed: Hopefully, I'm missing something obvious.2.3KViews0likes1CommentUsing 2 instances of Teams
Doing some project work with a client, I need to be logged in to their Teams instance in addition to our corporate Teams account. I went to teams.microsoft.com, signed in with the credentials they assigned me and using Edge, installed this site as an app which is now on my taskbar. I'm having a couple of issues with this process. If I sign in to their Teams account from the Teams desktop app and click on the Teams menu item on the left-hand side bar I can see the teams that were assigned to me. This is what I need the most to access the Files group for that team. However, when signed in via the web app, that team does not show up. In fact, I don't see either of the two teams that were assigned to me when using the web app, but do see them when using the desktop app. The other issue is with desktop notifications. I can't find where to enable that for the web app. The post that I found describing how to setup the PWA just says to click the Turn on Desktop Notifications, but I don't see that option anywhere.2.5KViews0likes3CommentsRe: Chat / Contacts Tab View
We are struggling with the same issue. It used to be so fast and easy to be able to click on Chat or Contacts to switch between the two. Now we have the extra two clicks to select the dropdown and then Chat/Contacts. This makes absolutely no sense and has broken what used to be a very simple process. Does MS have anywhere we can contact them to voice our displeasure with this illogical change? Everyone on my 15-person team will gladly voice our displeasure and I'm sure once the word gets out within my company there will be hundreds who will chime in also.37KViews2likes1Comment
Recent Blog Articles
No content to show