Quantcast
Channel: The Official Scripting Guys Forum! forum
Browsing all 15028 articles
Browse latest View live

Script to populate OEMInformation

Hi guys,I am trying to populate OEMInformation key in the registry of our workstations. I would like to run a script that gathers the "SystemManufacturer" and "SystemFamily" values under...

View Article


Powershell Scripting

Hi,Say I am installing Microsoft Patches every month on a Domain with 50+ servers. I need a script which could give me the following,i.)  Uptime of each server present in the domain, while running the...

View Article


Powershell: Get-ScheduledTask state

Hi. I have a problemto use thestatus of a specifictask in task scheduler to sendnotification if task from "Ready" to "Running" go.I did so:$TaskName="Test task" function GetTaskState() {...

View Article

Help Creating New AD User in Powershell from Existing User

So I do this:   PS C:\Users\Administrator>$userinstance= Get-ADUser -Identity testuserand make sure it's the right user by doing PS > $userinstanceThen, I try and create a new user based on that...

View Article

Add more than one value in info attribute (Active Directory)

Hello Guys, good evening! Please, maybe you can help us. We have a co-worker and she is visually impaired. So we think use the power shell, because the software "Jaws" can read the command line...

View Article


Local network printer installation

Hi,I got an script for driver installation of Intermec printer but it finish with error:"Unable to add printer driver EasyCoder PM4i (203 dpi) - DP Win32 error code -2146500030"The script for adding...

View Article

Function not recognized out of PowerISE in the same script

Hi everyone,I did a powershell script which launch a window with some functionalities and during all of the development in PowerISE I didn't care about the scope of the variables. So I learned about...

View Article

power shell script in taskschedular is not giving output

 Hi I am running below script in task schedular through taskschedular.ps1 script given below: ===================Taskschedular.ps1 script Import-Csv "D:\script\serverlist.csv" | foreach {$server =...

View Article


Changing File System Permissions and Ownership in Powershell

I'd like to change NTFS file system permissions and ownership using Powershell, both at the command line and from a Powershell script.I come from the Unix world, where it's pretty straightforward: To...

View Article


VBA Script Needed

withdrawal submission

View Article

Script to Reboot hyper-v virtual machine with email notification

Hello, I have been playing with this all day today but cannot seem to get it to do what I want. I want to restart 4-6 Virtual machines housed in hyper-v using a script. Then I want to send out an email...

View Article

how to search Case sensitive file in powershell

Dear All,I was trying to search for a file that starts with a capital letter A,  in Windows Powershell and I wrote this below:gci | Where-object { $_.name -ceq "A"* } but is not working. Can anyone...

View Article

powershell statement not running - creationtime property dayofweek

Hi All,Does anyone know what is wrong with my PS command. I want to find a file which was created on Saturday.Get-Item * | Where-Object {$_.CreationTime.DayOfWeek –eq "S*" }Thank-youSQL75

View Article


PS problem creating folder

I have a problem with the following code. If the folder defined in $OutputPath does not exist, the function will succesfully create the folder, but return the following error:Test-OutputPath : An...

View Article

Trying to figure out how to change the desktop background with powershell/batch.

The entire thing I'm doing is pretty pointless lol. But I wanted to prank my mother. This is my computer by the way nothing malicious. I just had an idea that the next time she goes to click and open...

View Article


UTF-8 characters (e.g À ) are not supporting in batch file

I am trying to add user using batch file, I have used UTF-8 characters in username. I am trying below command net user Àdmin "sdf" /ADD /FULLNAME:Àdmin /COMMENT:"description" I observed that user added...

View Article

Get-HyperVReport Script works for 19 of 20 VMHosts

Hello everyone,I've modified this script for my network; however, when it gets to the VMHost that I'm running the script from, it stops at "Gathering Disk/Volume information..."  I have run this script...

View Article


auredirect gmail to other emails

Hello. Lets say i receive an email on my gmail with subject wwww i would like to redirect all the received messages with the same subject to a number of emails without others seeing the original...

View Article

Excel ReleaseComObject doesn't work

I'm not sure what the deal is, but I'm having a problem with this. I've tried all variations of the releascomobject I've found and none of them seem to work. I'm opening an existing file and updating...

View Article

PowerShell/WMI Win32_PritnerDriver

Hi Scripting Guys!!!Background:I am getting some troubles in adding a network printer via PS script on a remote computer. I am using three classes to accomplish this task i.e. Win32_tcpipPrinterPort...

View Article
Browsing all 15028 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>