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

Powershell syntax error?

Hi,why is that inside powershell I can run command:ls ~\Downloads | where {($_.LastWriteTime).AddDays(1) -lt (get-date)} | remove-item -force -recurseBut when I try to run this in CMD shell:powershell...

View Article


AD Powershell - Adding ProxyAddresses to Groups from CSV

I have a set of AD Groups that I want to populate the ProxyAddresses of using a CSV File.My CSV looks like...

View Article


Questions about split ..trying to extract 2 levels of OUs from...

Hallo .. I'm still on a voyage of self-discovery to teach myself Powershell. Be kind.  I'd like to extract two levels of OU names from a computer object's distinguished name in AD for a report. I'm...

View Article

Proper syntax for custom task needed for custom task scheduler win7 64b

I have two events that I need to do two different tasks when they happen. However I can't get my custom filter to work. Here are the two events: Here are the two events: 1.<Event...

View Article

newbie question on regular expressions

I have a file which looks like this:x: 0      y:1 z: 4 THe output after parsing should be below. The idea is to split it on colon+space. If the lien begins with white space it is part of the value...

View Article


Import-CSV and Takeown.

I'm currently trying to come up with a way to search an entire folder directory to find all objects that a particular user is owner to, export that list to csv, then import that csv and using takeown...

View Article

How do I create a custom screen to show after a person logs in we are using...

I have been asked to create a custom welcome screen that would load after a person logs into their computer. This screen is to have links to applications.  But I need this to show after they log in and...

View Article

Mass Proxy Exceptions Query

Basically what I'm trying to do is run a script across all PCs in one subnet to find what Exceptions they have on their Proxy connection,It goes out to an external proxy for filtering &...

View Article


writing an array of custom objects to CSV

I am brand new to PS. I have been reading many, many forums and am stuck on something I think you all will find very easy.Essentially all I want to do is use the test-path method to determine if a file...

View Article


How do I pull part of a variable in Powershell

Hello, if I use the $env:computername to get a computer name, I will need to pull just a part of the variable to create a new variableHere is an example:If the return is BBUS1000-01 I need to set a...

View Article

Remotely checking file versions using PowerShell

HiCan anyone give me a start. I support many servers and PCs remotely which I have remote access to. I would like to be able to check file versions on servers and Pcs remotely to see if I can save...

View Article

objUser.SetInfo Error 80070005

Hello I Want to use this script as a startup script to my domain to change the local admins passwords. The password is passed as a parameter. The problem is when i run it on windows 8.1 or windows 7...

View Article

Script to End Powerpoint

HiI'm setting up machine in our Reception to display PowerPoint slide. I use a script to get the PowerPoint slide to run and also have one to copy the PowerPoint across to the machine from a server...

View Article


A script to pull manager email addresses from a list of users

Hello all,I am trying to pull a list of managers from a csv list of usernames. I can do it with two separate foreach loops and some text file massaging in between stages. I would like to get it to the...

View Article

Accessing Entire Active Directory in Drop Down List

Hi Scripting Guy, I am basically a Exchange guy :) but I have made a script which takes different input from user and then run a simple command to convert User Mailbox to Linked Mailbox. The actual...

View Article


WPF UI running in seperate runspace - able to set/get controls via...

I am trying to build a proof of concept where a WPF form is hosted in a seperate runspace and updates are handled from the primary shell/runspace. I have had some success thanks to a great article by...

View Article

Fidelity of Get-Process when remoting

I've seen a few questions here about remoting with Get-Process and elements of the output that are not available when remoting, but I've seen no explanation for why those elements are not available...

View Article


VBScript - SetPassword() - check history

Hi Guys,I am developing a VBScript to change AD user account password. I am trying to set password using setpassword() method. But this method not checking the password history. I am able to set the...

View Article

Use Windows PowerShell to count and list total number of items in Folders...

I have the need to generate a list of all outlook folders and the total number of items listed beside each folder name. I thought I could simply modify the script from "...

View Article

Code 800A0005

I have tried looking everywhere but I just can't find what i am looking for.The error is:Line 2Char 1Error invalid procedure call or argumentCode 800A0005Source Microsoft VBScript runtime errorHere is...

View Article
Browsing all 15028 articles
Browse latest View live


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