Batch files for Powershell
If i have this in my batch file:cd /d %~dp0powershell.exe -File Build_01\sp_script.ps1powershell.exe -File Build_02\sp_script.ps1pauseHow do I stop the execution of the batch if Build_01\sp_script.ps1...
View Articlelocally run script into running on multiple server
Hi, I have a PS v2 script that was created to run against one server at a time. Its used as a quality control to check if it server installed properly. Mainly does validation with if statements and...
View ArticleDownload 180 different print drivers 32/64 bit to single directory
I have a task go go out and download 178 printer drivers from various companies both 32 and 64 bit for deployment to a new print server. I have a spreadsheet with the specific models.Rather than start...
View ArticleThe server threw an exception. (Exception from HRESULT: 0x80010105...
When I use PowerShell to call Office Word Com Object the exception occured.$:word = New-Object -ComObject 'Word.Application'$word.Visible = $true$doc = $word.Documents.Open($File)$selection =...
View Articlequestion about errorcontinue
Hello,I am preparing a script that it should help identify TCP and ICA listenner which they are down.For that I am using Powershell Terminal Services module...
View ArticleHelp with script to move directories
Hello Powershell community,I am trying to write a script and am needing a little assistance, as I cannot get it to work the way it needs to work.Here is what I am trying to accomplish:Perform a...
View ArticleExporting Windows account lockout events to an XML file.
Here's my scenario.Our users regularly lock their AD accounts because they change their AD password and something else is still using it e.g. 1: an RDP session on a server 2: A PC 3: their mobile phone...
View ArticleTrouble adding unsigned printer driver via Powershell
I have a Powershell script which "builds" a Windows 7 PC. PC only has Windows 7 operating system and the Admin account. My Powershell script makes all the changes we want and adds accounts, users,...
View ArticleCommands to Add the SSL Certificates to the FTP Sites
Hi All Can Any One Help Me to provide the Command to Add the SSL Certificates to the FTP Sites.Is there any Command Available in Powershell in Windows Server 2008 R2
View Articleautomation of emc (symcli commands)
If you are familiar with EMC solutions enabler (which provides DOS command-like commands) like symcfg list, which outputs a list of the emc storage arrays located in a particular site by firmware code...
View ArticleHelp needed with running powershell iusing psexec
I am trying to call a powershell script using psexec which connects to remote systemSo from "Computer A" I call the batch file Aot.bat which is on "Computer B"Aot.bat has a line which calls the...
View ArticleHelp with script to copy files from one UNC path to another
I need a script that can copy files from one UNC path to another. This will be running from an intermediary server and copying from one remote server to another.I also need to specify specific files...
View ArticlePesky music and movies on user home drives
Hi Community,This morning i decided i would write a PS command to determine which users have music & movies on their home driveMore importantly I've had to address this, as the file server is fast...
View ArticleTrouble with if else statement
First off i'm a a newb at Powershell and scripting for that matter, so I know what my goal is just can't figure out what I'm doing wrong.My goal is have a script that first asks for a server name and...
View ArticleFile List ---Newbie
I am trying to create a msgbox that will list the file name and last modified date of the files in the folder. This is my code so far:$Results = Get-ChildItem "C:\Temp" -recurseForeach ($Result in...
View ArticleRestart service remotely using external domain credentials and check status
Hi there,I've been asked by my manager to create a powershell script that will restart the Apache Tomcat service on a remote server located in a different forest.This will be used by our operations...
View ArticleTrying to figure out how to create a report.
Hello, I have a script, which it retrieves the number of connected sessions to Citrix servers.At the moment I just simply generate an output like this:Server: CHCTXSUP001 has: 2Server: CHCTXSUP002...
View ArticleReport on all hotfixes and windows updates installed?
Hello EveryoneI am new here and glad to join this great forum. I am a novice in PowerShell but diligently working to become better. The ask I have from my manager is to create a script that will...
View ArticleHelp with a script to query win32_service
Hi,I have the follwing script that has been created to help me identify the version of EMC Powerpath installed on my Windows servers.The script is working fine, but instead of ending having queried the...
View ArticlePowerShell cmdlets in C# - usage of getDynamicParameters() - Looking for help
Apologies for the lengthy read. I look for some help and hence choosen to drop the code-snippet here. Need this to help with my work at office.I wrote a cmdlet in C# to accept 2 parameters A and B ....
View Article