PowerShell GUIs: Multi-Line TextBox Carriage Return/Line Feed?
So I have a textbox that I'm using as an active log writer. I'm trying to do something very simple to the textbox: add a CR/LF. I tried the powershell `n, tried duplicating it (dunno why) `n`n, the...
View Article[PowerShell DSC] xWebAppPool does not implement the write property autoStart...
I suddenly started seeing below issue in one of our environments. We did couple of deployments and we never had any issues. This is the first time.we are using xWebAdministration ModuleVersion =...
View Articlehow do i limit my search?
i need to limit my search using SearchBase but i'm a little stuck with how i'm doing it:if (Get-ADuser -Filter {samAccountName -like $_.ID} -searchBase "OU=Main,DC=ACME,DC=com" ) if i don't put a...
View ArticleOutput to comma seperated format rather than list
Hi,I am trying to format the output of the below powershell command to be in a comma separated format i.e name1,name2,name3,name4get-ADGroupMember "groupname" | ft NameIs anyone able to explain how I...
View ArticleSplitting an attribute value at the spacebar
Hi, I have two scripts that I am currently using.The first script gets an AD user and copies the givenName value to the streetAddress:$LocalUsers = Get-ADUser -Filter * -SearchBase...
View ArticleCreating ZIP archives with PowerShell and Windows tools
I would like to backup data of client computers with PowerShell. To do so I create a ZIP archive of the requested data which basically is no problem at all. But when it comes to special characters...
View ArticleHelp With Data Input for Get-WinEvent -FilterXPath
Hello Hello.I'm having some trouble getting the desired result when parsing event logs from the security log. I've enabled windows auditing, and I'm attempting to parse the Access List data as seen...
View ArticleWindows 10 feature\AD modification
Hello Scripting Guys. Last week you all helped me with modifying features on Windows 7 and it was a great help, this week I need your help modifying features on a Windows 10 Client Workstation. The...
View ArticlePowershell 5.0 and workflow Restart-Computer over an SSL connection
Hi all,I've started exploring PowerShell workflows for our remote administration needs and I've hit what I think might be a bug in the Restart-Computer workflow activity. Here's the walkthrough of our...
View ArticleHow can I execute a command on every line in a text file?
I've been using a small powershell script to check remote computers for installed software: $pc = Read-Host -Prompt 'Which PC would you like to check?' gwmi win32_product -ComputerName $pc >...
View ArticleGet-ADUser not excepting variable
HelloI've been asked to update the title for users at our organization from a CSV file. The CSV file contains theforst name, last name, and the updated title for each user.I have no trouble importing...
View ArticleAdd user to Security group base on Division Attribute with multiple values
Need a script that would add users to a Security Group if the Division attribute value is either "001 Inside Sales West" or "002 Inside Sales East".here is a script so that you know what I am trying to...
View ArticleRobocopy move complex folder structure from multiple sources to network drive
Hello,I need to solve the following problem and I would like to know if I can to this with Copyrobot, I am asking here, because I have never done anything with Copyrobot before. I have one network...
View ArticleNeed urgent help, printer scripting issue
$Printers = Import-csv C:\Users\gree30a\Desktop\bulkcreateprinter\printers.csv+ add-printer -computername Nameofserver -Comment $Printers.Comment -ShareName $printers.ShareName -PortName...
View ArticleGet-CimInstance not finding all Event Logs in Win32_NTLogEvent
Afternoon. I have setup my event log to have this (Microsoft-Windows-PrintService/Operational) enabled. I'm using Windows 8.1. The event is triggered in event viewer (EventID 821) when I print.When I...
View ArticleTrying to monitor folder content using a vbs script
Hi guys,I've found quite a lot of scripts that should have helped to reach my goal, but I didn't manage to adapt it.My need is to check how my daily loading (from both operational system and then...
View ArticleVBSCRIPT : interchange between commands and results ?!
Hello,Inside my vbscript, I define some commands, and the results come inside a txt file.But 2 parts of my commands are interchanged in the txt file. It's quiet amazing !First part : -- ' Set oShell =...
View ArticleGet top 5 cpu memory/cpu and have same result as taskmgr, use get-process,...
Hi, I'd like to list top 5 process an which percentage of cpu/memory they use. I will then use this to analyze remotely what processes are consuming cpu/memory instead of going via taskmgr. I have...
View ArticleScheduled task fails on script (but script is working fine)
Hi,I want to run a script via scheduled task. It runs fine when ran in Powershell (ISE). When ran in scheduled task, it pops up a Powershell but then directly stops. No output at all. Have inserted a...
View ArticlePowershell - list groups users are a member of
HiI am trying to write a powershell script to list all the groups all users in a particular OU in AD are a member of. Can you please helpThank you
View Article