Selecting Items as variables
I am, for the first time, trying to create a popup selectable item list in powershell. Can someone help me understand why this code is not defining the $Printer1 variable?#Extract Printer list from...
View ArticleSoftware installation with Powershell
Hello ,I have a problem with install an exe file using the command (Powershell ) but not able to do that it always pops the window .Need to do the installation in silent mode .but not sure whether...
View ArticleLocal Administrator Group Changes Powershell
Hello all. I'm still somewhat new to powershell and I am trying to figure out something. I found the script How to Get Notified of Local Administrator Group Changes with Powershell on MS TechNet (How...
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 ArticleScript to find out if local user accounts are being used to logon to domain...
We have a few users in our organization who are authorized to reload their systems for testing purposes. Because they do this, they necessarily will know the default administrator's password, and they...
View ArticlePowerShell - Audit Apps For Various Computers
I'm trying to create a PowerShell script that allows me to document the installed applications on various computers in a network. Can someone help me figure out why this isn't working for me?#Remember...
View ArticlePowershell code Error while loading the powershell output to SQL server database
Hello All,Below powershell code is not working. I need your help to find out the error where i am struggling. Also let me know how to store the powershell output to SQL server database table. function...
View ArticleMessage Count by Accepted Domain Report
I have found lots of scripts/reports to get emails sent by recipients with counts and such. I am looking for a script to just get received emails counts to my accepted domains from the internet. I...
View ArticleTurning on/off Windows features with powershell
Hello Scripting guys, I am in the process of moving some of my computers from Windows 7 to Windows 10. We have a very large environment with a lot of Admin personnel. I am looking for a way that I...
View ArticlePowershell Create New File
Hello everyone ,I have a script to create a file "M_VAR.cmd" and when i execute this file I have a strange error.My Powershell script The script is ok My file exist but ...When i execute my script...
View ArticleMember Of Tab
Hi,I need to export the data in the "Members Of" Tab for a Universal Group. I am using the Get-ADGroup cmdlet, but I am cannot find the right switch to display or export the names in the "Member Of"...
View ArticleReplace string in the log file
Hello everyone,I really suck with Powershell scripting. I'm trying to replace string in a log file, I was able to replace one part of the string that I want to replace with and the remaining part I...
View ArticleMaking a .bat run silently via GPO?
Here's my batch file, in its entirety:@echo offNET USER Administrator newpasswordhereI've been on the search engines and seen suggested adding "/B" before the command I'm executing (didn't work) and...
View ArticleUnable to get, Remove-PrinterDriver -Name "PS Driver for Universal Print"...
Hello,We are trying to accomplish removing a driver package from the driver store with PS. Manually in the print management applet we would highlight the driver and select "Remove Driver Package". This...
View ArticleSearch for and replace line of text
Hello,I need a powershell script to search a text file for a known line of text ('Line 2 Heading'), delete the following line, replace it with another line and save contents to a new file name.The line...
View Articledeploy group policies using batch file on stand alone servers
Hi Team, i want to automate the following policies using a batch file, please post your valuable answers for the same.- Password should be expired in 120 days.- Password should be longer than 8...
View ArticleCall WebService VBScript
Hello everyone ! I'm trying to call webservices using VBs but when I tried to create a SOAPClient object an error message shows: "the activex component can't create object: 'MSSOAP.SOAPClient" Every...
View ArticleEmails sent,receive and size of a single user in exchange 2013 for last 30 days
Hi, Need urgent help. Please help me to create the report in below format in exchange 2013 for a single user. Daily Traffic Summary from 2016-09-01 to 2016-09-30 Selection of mailboxes: Rahul Mallaiya,...
View ArticleClickable PowerShell script on an HTML page
HiI have the following script ......$body+='<br />'$body+='<br />'$body+='<button onlick="myFunction($script)">Rackhat</button>'$script = Get-WinEvent -Computer RackHat...
View ArticleScript to find Serial Number of all workstations on network including host name
Hello all,hoping you can help me with one of 2 things. I would like to find out the serial number and hostname of all laptops and desktops on our network. Specifically European network and excluding US...
View Article