Quantcast
Channel: Windows PowerShell forum
Browsing all 21975 articles
Browse latest View live

Check Server clocks and send output by mail

Hello, i wrote a script which suppose to check time and date at specific servers, and send the output by email. the problem is that for some reason, the massage that i get is the command itself, and...

View Article


How to load a .NET assemblies in my Powershell script

Hi,I'm trying to use the C# code snippets directly in Powershell. The issue which I'm facing at present is a run time error: "Cannot add type. One or more required assemblies are missing" in the...

View Article


Copy only the folders from a pst to another pst file with powershell

Hello,I've looked on technet forums and did not found a command line that copy just the folders structure to another pst file.Has anyone did this ?

View Article

VB Script to connect to Windows Servers (2000/nt/2003/2007) machine and Solve...

Hi,I am looking to develop a vbscript to  connect to Remote Windows Server and solve the problems related toCPU Utilization being high and Disk is running out of space. I am planning to call that...

View Article

checking user privilages of account running script

   I have a powershell script that occasionally fails on systems that aren't running it with the correct account.What I want to do is put a check at the beginning of the script to check that the user...

View Article


Backup-GPO cmdlet errors in Task Scheduler

I have scheduled a simple script on my Windows Server 2012 domain controller to backup my group policies (separate from the System State backup). I ran the script manually, and it works as expected. I...

View Article

split a single string by several seperator

Hi, I have a string from where i want to get the values for my parameters by splitting the string by the seperator -i, -u, -p. string: -ic:\reports\inc\ -ucuriosity -psecret I want to have those values...

View Article

productkey

hello,I have problem with powershell (x86). In the Web i found a script witch can show me my windows 7 product key, because i lost a cd with this number. And when i using this script i get one of the...

View Article


Powershell Version 2 scripts in version 3

I'm just about at the end of my wits with this one, so i figured i'd give the rest of the world a crack at it.  So we have this web app at work that we launch via a PS script.  The purpose of the...

View Article


Searching for a part of a string in an array

Hello everyone,the problem is a bit simple but I haven't found a solution for it yet. I have an array with some objects in it. Now there is another array with objects. I would like to match a property...

View Article

Remotely create sites from a non IIS server

Hi!  I'm creating some scripts to create websites to different web servers, but I'm standing in a non IIS server. So, I wanted to install the powershell snap-in for IIS administration, but I read that...

View Article

ps help!

Hi all,I need to get all active network adapter and driver version from 6 servers at the same domain.  Also, HBA version, driver version firmware too.  export results to csv file.Can anyone help?Thank...

View Article

Help with select-string command using regular expression

I am trying to pull out a string of information from a text file using the select-string command in powershell.    The text file I am searching is source from an html document. The regex string in...

View Article


Change NIC Adapter binding order

Hi All,I've looked through many articles and built a script that changes the registry keys for:"HKLM:\SYSTEM\CurrentControlSet\services\Tcpip\Linkage\"...

View Article

How to Query remote PC's registry by OU for 2 values and export to CSV file.

I'm new to scripting and to Powershell but this is what I have managed to put together so far. Of course it fails. We have two custom entries in the registry that I want to query remote workstations...

View Article


Defining a object array in a C# custom type

I'm pulling information from a web service using PowerShell's New-WebServiceProxy with GetRecords, and manipulating how it displays in PS using a custom type.  For the sake of the question, the PS code...

View Article

Powershell MySQL query to csv

Hi new to this. Can someone tell me the easiest way of connecting to MySQL database, running a query and outputting to CSV?Thanks

View Article


Trying to add -ListSet to this query

Can someone help me out?  Can't seem to get it.  I want to collect these 2 counters at the same time instead of incrementally.  I think the -ListSet is what I need, but don't know. param($servername)...

View Article

Assistance with retrieving File and Version on a file with "custom file...

Morning,I am attempting to get the file version and date info from a file on multiple workstations on our network. I already know the file location, name and even which workstations the file is on....

View Article

Image may be NSFW.
Clik here to view.

Powershell set-executionpolicy configuration?

Why is it that when i run s script, it still ask question(highlighted part)?even though I already set the set-executionpolicy to UNRESTRICTED.How to disable it? How can i set my powershell to whenever...

View Article
Browsing all 21975 articles
Browse latest View live


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