Abort shutdown remotely
Hello,Long version: I've got to reboot a couple hundred machines remotely to get the WannaCrypt updates in place. We force a scheduled reboot every 45 days. This is done by having a script run at...
View ArticlePowershell download and install script with logs
Can anyone advise what is wrong with my script. The download is fine but installation and logging aren't. It does not install and does not log with error or success. Please advise. Thanks.$url =...
View ArticleAutomate Home drive Copy to new server, AD homepath change, set ownership
I needs to perform the below about 1000 times, is there a simple script to perform this work that someone might already have made?. I have exported a csv file from AD containing, Column A...
View ArticleRemotely executing an application from SMB share
I have an executable on an SMB share, say UNC path \\server\share\application.exeI would like to run application.exe directly from the SMB share on a remote computer via PowerShell.I can execute...
View ArticleDataGridView add header cell number
Is it possible to do this in powershell ?i found only this link in C++https://stackoverflow.com/questions/9581626/show-row-number-in-row-header-of-a-datagridview
View ArticleWhat's wrong with this simple script?
I have a simple script that is making me crazy. (I suspect that's because it's late and I'm tired.)When I run the script it inaccurately reports that my user is in the...
View ArticlePowerShell & SCCM 2012
Hi All,I am trying to start a deploy in SCCM 2012 via a PowerShell Script. Here is my current Script.Text$SC = New-Object -ComObject "UIResource.UIResourceMgr" $taskSequence =...
View ArticlePowershell Pass script block thorough Invoke-Command
Could user a little tweak here...this command works fine on its ownText$obj = new-object -com wscript.shell $obj.SendKeys([char]173) But when i try to pass it to a remote with the following...
View ArticleGetting file permissions for a specific file in users home folder
I need to check the permissions on a specific file that was copied to every users home directory. I am pretty sure this is a Get-ACL command. So far I am able to run it against individual users....
View ArticleScript error
Hi All,I am trying to learn powershell and doing lab's I have an error in my code and just can not for the life of me figure it out. any in site would be awesome.#Main Body#This section contains the...
View ArticleVariable in UNC path export-csv
Trying to create a search that drop a .csv with results on each computer it scans. Problem seems to be in using a variable in the UNC path...any...
View ArticlePowershell script to update remote computers WSUS settings in a domain
Hello,I am very new to the scripting. when im in power shell and run the below you see what i get:PS C:\ben Get-WindowsUpdateAgent -Computer mineUpdateMethod : InstallDetectionFrequency : 1InstallDay :...
View ArticleOffice 365 contacts on IPhone
Can anyone assist me. I am trying to find a powershell script that will copy a public folder "company contacts" to a user mailbox (under the users contact folder). This seems to be the only we to...
View ArticleLearning PowerShell
I realize this is a very broad question to ask, but I'm curious to hear from experienced individuals in PowerShell. My question is this... which concepts or skills do you feel provided the most value...
View ArticleI need help in constructing a script for Powershell update
Text$OSName = (Get-WmiObject -Class Win32_OperatingSystem | Select-Object Caption -ErrorAction Stop).Caption write-host $OSName $OSArchitecture = (Get-WmiObject -Class Win32_OperatingSystem |...
View ArticlePowershell Issue?
Hi,I was wondering if someone can assist me on the issue with power shell im having, So recently im going to implement FSRM right now its on a test lab, I have read a few tutorials on on this script...
View ArticleI need to download and install the file from below link.
https://www.microsoft.com/en-us/download/confirmation.aspx?id=54616&6B49FDFB-8E5B-4B07-BC31-15695C5A2143=1However, I cannot make it work. What I want to achieve is, download the file from that link...
View ArticleRun Powershell from a restart.
If I send a restart command to a computer from a PowerShell script is it possible to have the script restart from where it exited the script when it comes back up again?If it is please will you point...
View ArticleImport-CSV Loop through field
I can't recall how to do the following:Import a CSV in Powershell that has multiple values that need to be looped through in 1 field,in this example, a list of AD Groups in the field...
View ArticleHow can I make all the letters in the names all CAPS ?
$names = 'john smith', 'ludwig van beethoven', 'george washington', 'james van der kampf' foreach ($name in $names) { $firstName = (Get-Culture).TextInfo.ToTitleCase($name.split()[0]) $lastName = ''...
View Article