Powershell script for remote servers inventory
Hi there,I'm looking for a powershell script to obtain below inventory information (or as much as can) from list of servers in my...
View ArticleScript to delete credentials
Is my script good. I'm trying to delete credentials(credential manager) when the users password is expirate.Get-ADUser -Identity "%username%" -properties passwordneverexpires If(passwordneverexpires...
View ArticleScript for to fetch All Softwares & OS details, Actual Hostname & IP address
I would need to fetch below information only from remote computers. 1. All software details including Product & its version (No Windows Update Related stuff) 2. Windows OS information 3. IP Address...
View ArticleServer Inventory by PowerShell
Hi,I'm gathering my server inventory and I'm using the PowerShell Command below;Get-ADComputer -Filter {OperatingSystem -Like "Windows *Server*"} -Property * | Format-Table...
View ArticleThe term 'Invoke-Command' is not recognized as the name of a cmdlet...
So, I've created a PowerShell workflow to use in Service Management Automation. The workflow uses automation variables and has a InlineScript that returns a users mailbox properties from Exchange...
View ArticleExecute tasks in parallel in Workflow question
Hello, Dear Colleagues.Help me to deal with the next question.Here is PS script:Workflow Test-Workflow {"This will run first" parallel {" Command 1"" Command 2" sequence {" Command A"" Command B"...
View ArticleReset Local Administrator Password script. Need help with logging to a...
Hi Guys, I'm working on a new powershell script that will help reset the Local Administrator passwords of all our workstations. It will be a script that I will schedule to run every 30 minutes to try...
View ArticleUsing Start-Job to launch multiple SSH sessions and esxtop?
Hello folks,I am trying to start an esxtop session on multiple esx servers at the same time.I started trying using Start-Job thinking it would help do it asynchronously.The script I have below works on...
View ArticleHow to export all shared mailboxes with delegation of full control.
Help me please with a commands. Tried to find information by myself, but no success.Subject: Office 365I want to make script, that checking status of "mailbox delegation->full access" in all my...
View ArticleSFTP transfer
Hi , I am looking to transfer files from local server to remote server using SFTP client (WINSCP or any other FTP client) .The files are are to be moved daily which must check if files already exits...
View ArticleHow to get Import-CSV to work for me
Hi,I have a csv file with 5 columns, the first 3 columns are IPV4 IPs with the 4-6 columns just text. My goal is to Import the CSV, convert to strings, then perform string comparisons using the first...
View ArticleIs it psossible echo something after passwordlastset
Im trying to echo a test text after the user change his Active directory password.It checks if user lastpassword set is 30 seconds ago.Can anyone help me out. Im really stuck.$Time =...
View Articlejob script not working when using variable
helloi have a job script that work perfectly when the sourceparth is not a variable in the copy-item like this, copy-item c:\source "\\$ip\c$" -Recurse , but when i set $sourcepath="c:\$folder", the...
View Articlewinrm >> input field
Hi,I have a lame question. What character or input command do I use with Winrm after executing a successful command. I get the >> prefix. What is the help command. I've tried all the ones that I...
View ArticlePowershell and regex using Select-String
Hello I am trying to extract the servername and database name from a file that contains a connection string. The code I am using is below. The first line can extract the servername fine but the second...
View ArticlePowershell help with Get-ADUser
Hi,I'm trying to learn and make a script so that when I open the script (ISE), I get a window where I enter the user name (SamAccountName) into a textbox, then select the properties I want to get from...
View ArticleGenerate an error log on a script execution
Hi all, I would like to put the errors that a script may generate to a file that eventually I will send by mail to my supervisor. I have tried\script V4.ps1 *>&1 | tee -filePath...
View ArticleDSC Pull Problem
I have setup a DSC Pull server and a few client to connect. The problem is on the clients the config does not pull down and I get the following in the event viewer on all the clients. If I manually...
View ArticleHelp creating a powerShell script that will pull all users from an OU and...
Hi,I am trying to create a script for our HR Dept that will pull up a list of -properties and display them them for all users in a OU minus disabled accounts. (the disabled accounts is not required as...
View ArticleAppend daily PowerShell output to HTML file
Hi, hope this is the right place to post this.I have a script that generates the number of emails that a certain email address receives per day. A simple ‘Get-MessageTrackingLog’ command and this is...
View Article