Uninstalling non-Windows hotfixes
Using Get-HotFix or wmic only shows Windows hotfixes. If you have, for example, .Net or MS Office hotfixes, these tools do not see them. Non-windows updates cannot be uninstalled using WUSA.exe....
View Articlehow to find what a Url has been changed to
I am new to Powershell and I have a script that I inherited. The script opens a URL link and downloads files from the web site to a local path. The problem is that each month, the URL changes so I...
View ArticleControlUp 3.0 - New Citrix XenApp / XenDesktop Real-time metrics and...
Over the last couple of years ControlUp became one of the most popular management platforms for Citrix Admins managing XenApp and XenDesktop farms. ControlUp’s real-time performance views and built-in...
View ArticleHow do I use PowerShell to upload a VM when I have multiple Azure subscriptions?
As I’ve worked with Microsoft Azure, PowerShell has been a tool that has made my life easier. When I just managed one subscription, PowerShell was easy because I was able to do a few quick Bing...
View ArticleGetSID of the user,object: Registry, WMIC, PowerShell
At times, we are in a situation when need to identify the SID of any object. The security identifier (SID) structure is a variable-length structure used to uniquely identify users or groups.Read More
View ArticleUsing Power Shell to run scripts on a remote computer
I have been tasked with a job of creating a power shell script that can be run from the command prompt that will make use of Microsoft Word (2013) to open a specified word document and save it as a PDF...
View ArticleCoding output file
I am wanting to code an output file for the following script. If the user is not found, I want to put the user(s) into a txt file.$List = Import-CSV "path-location"$Step1 = New-MsolLicenseOptions...
View Articleiterating through an array to gather data for an email to a customer
Ok to start I'm extremely new to powershell. I've taken one class and now my boss thinks I'm proficient. What I am trying to accomplish :dump sql database into an arraysort array by owneriterate...
View ArticleMoving computer to new OU
$Find = Get-ADComputer MG10011001Write-host $FindMove-ADObject $Find -TargetPath "OU=MGH_USERS,DC=Acme,DC=org" When I run the above code it completes without error but it does not move the machine....
View ArticleMailbox Search
Search-Mailbox -Identity "Joe Healy" -SearchQuery 'Subject:"Project Hamilton"' -TargetMailbox "DiscoveryMailbox" -TargetFolder "JoeHealy-ProjectHamilton" -LogLevel FullAbove command return all messages...
View ArticleDistinguishedName
$GetName = (get-ItemProperty hklm:\SOFTWARE\Microsoft\MPSD\OSD).OSDComputerName$Find = Get-ADComputer ($GetName).DistinguishedName$Find On line 2 above I've also tried $Find = Get-ADComputer...
View ArticleScript to detect when Netbios name different than DNS name
Thank you for reading this.I am a PS greenhorn so please help with:I need a PS script which loads a txt list of computers one per line and identifies, redirecting to a text file same format, which...
View Articlepowershell script to find a process is running or not
Hi Friends, I am new to this forum. I have a small requirement.I want to do the following: 1. I want to check a process and stop it gracefully 2. If the process does not stop gracefully after 5 mins...
View ArticleReverse lookup on archive mailbox
Hi All, hope you're well.Wondering if anyone knows how to do a reverse look up on a an archive mailbox.So if you do a Get-Mailboxstatistics-Database DatabaseNameon a mailbox database that has Exchange...
View ArticleStart-BitsTransfer: Cannot Find Path
I want to copy one zip file from my local system to the Server machine. So I am using the Powershell Command Start-BitsTransfer -source c:\file.zip -destination \192.168.1.210\C$\Website -credential...
View ArticleThe specified path, file name, or both are too long.
I try to copy three kind of files to a remote location. I've tested it on my own computer and on a server and everything works fine BUT on the computer I actually should execute this script.I already...
View Articlehow to recreate undelivered email report?
anyone have script to create undelivered emails report? I am looking for daily report for yesterday with sender and failed receipent.now i can view them from message tracker by doing DSN search and...
View Articlecreating a function on Invoke-SqlCmd and having Troubles with UserName /...
Hi all, so im building some functions in powershell where i need to choose between Windows or SQL authentication, so im trying to put that into my scripts but having a couple of issues.. My current...
View ArticleNeed help with regex
I have files with content similar to one below:SN1,Column2,Column3;SN2,Column2,Column3;SN3,Column2,Column3;SN1,Column2,Column3;SN2,Column2,Column3;I need to create a PS script which will perform some...
View Article