Quantcast
Browsing all 21975 articles
Browse latest View live

Can PowerShell restore previous versions of files/folders via Volume Shadow...

We are working with MS Tech Support to determine why many of our students' home folders are being deleted on logon in Windows 7 and 2008R2. We are in the US, but there are other schools around the...

View Article


Pass data back from a PSSession to local

Hello All,I'm using a remote-session to collect some additional information on a remote server.My script executes perfectly, but I would like to get the result back to my local powershell session as a...

View Article


Trigger a Script on On Saturdays

I'm looking at writing a script that only fires off an email when it's either the first or second Saturday of the month..All other Saturdays of the month can be ignored. The issue I'm having is that...

View Article

Compare 2 variables -contains

Hi i always find it difficult comparing objects in powershell.Having 2 variables $var1 user1user2user2And $var2name        statususer2         1user3         1user4         0I want to compare both...

View Article

IBM WMI

Hi,I am looking for class/namespace for querying IBM server Hardware information like....controller card...cache battery status...memory modules installed and their status....I was able pull the said...

View Article


Upload to SFTP

Hi, I have upload script that can upload file into a simple FTP. BUT now i need to upload file into an SFTP, where post number 22 has to be assigned. How to change the code to adapt this need? This is...

View Article

Regex for computer FQDN

Hi,Can anyone help me with a RegEX to validate ComputerName to test if it is in FQDN format or not? Also I want to extract NetBIOS Name from FQDN of the computer.Thanks, Sitaram Pamarthi Blog :...

View Article

replace text script help

 I need some help adding some more logic to this script. When I find the files I need to do a extra check before doing my  replace. Then after files matches or not I need to move this file to another...

View Article


Running script remotely causes it to fail

Hi thereI have been working on an image updating script in Powershell 3.0 for the past few weeks. The script, when run locally as either an admin or the local System account, works perfectly. It falls...

View Article


Running Concurrent Scripts in PS 2.0

In a pre-workflow (3.0) environment, if I have a process flow like this: 1) Run script A.ps1 2) Then start script B1.ps1 & B2.ps1 at the same time 3) Once both scripts have finished, start C.ps1...

View Article

How can I script the generation of a new email in a function and put a...

Hi,I'm in the process of working on a script to perform password generating and notifications. I've hit a couple of hurdles. I have a function called "Send_Email" which takes 2 parameters, if I run...

View Article

Where can I find the list of all security related PowerShell cmdlets/commands?

I'm looking for a list of all Windows PowerShell cmdlets/commands. I have been searching for this, but I couldn't find anything similar. If someone can tell me where I can find all the security related...

View Article

PSRemote Copy UNC, Script Block Remote Function

I'm writing a script that uses invoke-command to run some operations on a remote system. I need to copy a file from a server to the remote system.When invoking the command on a remote system i'm unable...

View Article


select substring in string

hello guys,I have a string like...

View Article

custom .NET class with serialization method throw exception

I created a custom class using Add-Type and it's defined by C# code.  Because of the limitations of the export and import CliXml cmdlets I created a serialize and deserialize method on the class.  This...

View Article


Loss of popup "gui" after upgrading ti Powershell v3.0

Hi thereI've just upgrade my powershell to v3.0 and when I ran a script that uses parameters, I no longer get the popup box which displays the name of variable, with an input box and the helpmessage...

View Article

Image may be NSFW.
Clik here to view.

Identification prompt with encrypted password...

I want to install a service with a GPO at the user logon (so it is deployed with elevated administrator rights) and with a domain admin account.So, I have encrypted the password on the network in a txt...

View Article


"Disk Cleanup" like PowerShell script?

I'd like to use a PowerShell script that does the sorts of disk cleanup as the GUI "Disk Cleanup". How can I script that?

View Article

Error with New-ADUser command.

Hello everyone,  just starting with powershell and must create a a few hundred users.  managed to write something like code below  but it generates error below.  any help is appreciated. New-ADUser :...

View Article

[15.00.670.4000] [PS] [C#] [Windows]: PowerShell Runspace to Exchange Online...

I have an application that programmatically invokes PowerShell commands on Exchange Server. Connecting the app to Exchange online server outlook.office365.com is successful, and invoking individual...

View Article
Browsing all 21975 articles
Browse latest View live