Creating a list of users from remote machines - One source?
To get a list of users on select/all remote machines, do I have to use a combination of WMI/ADSI? WMI might? be easier, but to get the same properties you usually see when looking at AD accounts, it...
View ArticleHow to Find .Net Version Installation
Hi All, I would like to find which .Net Version is installed on a Computer. Could you please help me with a Powershell script on how can i get this Output.
View ArticleAdd for-each loop to this script that calls other functions
Hey AllI've been trying to get this script to work against multiple systems defined in a text file or csv file, but I'm stuck.This script calls 2 other functions and I couldn't get them to work by...
View ArticleProcessing "Sets" of ojects from a CSV file
Hello AllCan someone kindly help me with the following query please.This is a little bit difficult to explain but I will do my best,I have a CSV file, the format of the CSV file stays the same but the...
View ArticleSend-MailMessage without authentication
I'm running scripts under domain accounts which are sending various mails using the Send-MailMessage cmdlet with various sender addresses.Unfortunately Send-MailMessage always authenticates with that...
View ArticleRestart server & then email
I am trying to write a script to restart a server and then email when the restart is done.I started with this basic command: Restart-Computer -ComputerName <string[ ]>,But I can't get it into a...
View ArticleSelective Permissions
Dear Powershell expertsI would like to get the permissions on a windows storage dfs server for a particular user. I tried to do it with Get-ChildItem but i got stuck.This is very useful when one user...
View ArticleQuerying Servers To Find When It Was Last Updated
I wanted to see if there is a way to query a server or servers and see if there is a way to for it to determine when the last time it was successfully patched. I know I can do the following and get the...
View ArticleQuery or Report for all applications that use specific version of Java
Hey Guys, I am in the need of a query , report or script that will generate a list of all of the applications that use a specific version of Java. I need to know what applications actually have a...
View Articleneed a script for fileshare
Howdy!I need help getting permissions for a share and its subfolders and who has permissions w/ the type of permissions. I tried the below, but it only pulled 1 subfolder - Get-ChildItem...
View ArticleWorking example of DataAdapter and DataGridView Control
Can someone post a working example of using PowerShell with DataAdapter to read SQL Server data, display that data using a DataGridView control, and write the data changes back to SQL Server?
View ArticleHow to set a password for a workgroup Server 2008r2 user account
Subject about spells it out. I have searched and tried both WMIObject win32_UserAccount and also ADSI but it looks like neither allow the password to be set. I have 14 non-domain joined servers that I...
View ArticlePowerShell, Windows Forms and single threads
I've created a Form with a few buttons on that interacts with (a remote) Microsoft Identity Integration Server. It simply tells various MIIS Management Agents to perform an import or export to the...
View ArticlePowershell (WSUS) - Update status InstalledCount, NeededCount, Failed.
What is the best way to add these updatescope into a Powershell Script?
View ArticleSyntax Issue with IF -Contains
I am trying to write a script that will check to see if a Service is not running. If it is not running then execute a Write-Host command. I have this code: $Results = Foreach ($Server in (get-content...
View ArticleHelp for Variable prase
Hi All,Please can anyone help me in parseexact of variable. Requirement is to extract single value rather whole string.Let me tell the exact requirement, i have a form with textbox which will take a...
View Articlexaml Extract parent window properties.
I am running a script calling an xaml file and need to know how to extract the size of the parent (Windows) form from the script in order to position this at the top right of the desktop. I have set...
View ArticleNeed help with table (hashtable?) formatting
I've write a simple script to get remote counters reagarding to disk performance:$counter_read_latency="\PhysicalDisk(*)\Avg. Disk sec/Read"$counter_write_latency="\PhysicalDisk(*)\Avg. Disk...
View ArticleRunning job on remote computer as scheduled job
There seems to be times and reasons why running a powershell command or script on a remote computer as a scheduled job is a neccesity. I have been trying to come up with a way to do this on all my...
View ArticleHow to create the proper loop
I have this code which now works. $Results = Foreach ($Server in (get-content "C:\Temp\servers.txt")) {Get-Service "Credential Manager" -ComputerName $Server | Select...
View Article