Get-wmiobject Win32_Share does not show Sharing Permissions
To find folders which have Shares open to Everyone, I am using the below. This works well however there is an interesting test we found.Method 1 - Simple Method - Right click on folder - Share with -...
View ArticleExchange 2010 Delete all mails till a date for all users
Hi , I want to delete on my exchange for all users till a date 20/07/2016 .in all folders , and do not move it to the trash box .I used this command but this will not work : get-mailbox |...
View ArticleDSC Partial configurations failing when trying to update servers at the same...
Hi All,I have tried to configure the partial configurations for the set of servers.The nodes are configured as following:ConfigurationRepositoryWeb XXX-DSC-REPOS {ServerURL =...
View ArticleSilent Install of .net 4.5 in powershell issue
When I am installing .net framework 4.5 through a silent install in Powershell, I am prompted by a GUI Open File - Security Warning. Is there a way to bypass these and completely install the executable...
View ArticleKeep getting System.String[] for Gateway using Get-WMIObject
I have been trying to add a function to grab a bunch of Network data from systems in preparation to replace a ton of older machines, but the original script was not one that I created. I've got it to...
View Articlenew-azurermvm
Hi everyone,I'm struggling to find instructions I can understand for the proper usage of the new-azurermvm syntax. My starting point is...
View ArticleGet-DistributionGroupMember Recursive Functionality.
I’m looking to create a script that can use a list of groups to go through and get me the members of each group.Example$group = Get-DistributionGroupMember –identity “Group Name” | Select...
View ArticleCopy text from one file into another at a specific possition using Powershell...
Hello And thank you in advance for any help this community can provide! I'm trying to create a powershell script that will copy the "excel.officeUI" file from a network drive, to a users local drive...
View ArticleHow to provide input for prompts ?
Hi Gurus, I am running an executable that prompts for confirmation when it is invoked,c:\> commit.exeAre you sure you want to continue (y/n) ? My script needs to call this executable (commit.exe)...
View ArticleReg Add Command
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d (value 0 or 1) reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows...
View ArticlePowershell IE current Window name
After I navigate to a new page, LocationName is still displayed as Facebook. What am I doing wrong here?$ie = New-Object -ComObject InternetExplorer.Application $ie.visible=$true...
View Articleinvoke-webrequest : The operation has timed out.
Getting a exception when I try to pull data from this webrequest.$headers = @{Authorization=$access_token} $MyURI = "https://apis.accela.com//v4/inspections" $ServicePoint =...
View ArticleAdd-WindowsFeature, Get-WindowsFeature modules not recognized in powershell.
Hi, I have several Windows Server 2008 R2 servers running in a test lab environment. I have installed the RTM version of 2008 r2. I am building an exchange 2010 lab to test out the new features in it....
View ArticleGenerating IIS Machine Keys with PowerShell
Hi - I have written a PowerShell script to update machine keys for a suite of web applications. I've used the "Generate-MachineKey" function found here:...
View ArticleUnable to add permissions to a file via set-acl
I see that the local Administrator is the owner of the file$acl = get-acl -Path $file$acl.Owner shows BUILTIN\Administrators When i try to add File permissions to the file, where im a part of...
View Articleexchange 2013 powershell script to generate shared mailbox owners list
hi,exchange 2013 powershell script to generate shared mailbox owners list.can any one help? tried with Owner parameter but it does not generate list with all shared mailbox details of ownersMD
View Article"Copy but keep both Files" in any of xcopy, copy, or robocopy
HelloI am building a batch file to move some files from 1 part of the network to the another. From time to time some files will have the same name, but not necessarily be the same file. I would like to...
View ArticleRun ps1 files in a batch file
I try to run a few ps1 files in a batch file.Powershell.exe -File f1.ps1 Powershell.exe -File f2.ps1 Powershell.exe -File f3.ps1 ... Powershell.exe -File f8.ps1Is there way to wait to finish one and...
View Articletrouble looping with do-while
just trying out a simple loop while encountering an "error"$int = 0 do{ $int = Read-Host "test" }while(!($int -ne 1991))it wokrs well until i enter value of 0/1 then it exits the loop - can anyone...
View ArticleRight click and "Run with PowerShell" Evasive Error
Hi, I create scripts for others to use. They do not know powershell, but can right click and run. It's hard to support a script if the user can't see the error long enough to read it. It's also hard...
View Article