Quantcast
Browsing all 21975 articles
Browse latest View live

"VersionInfo" property works differently under x86 and x64

Mighty all! I'm stuck trying to figure out why does "(Get-ChildItem -Path $env:windir\system32\macromed\Flash\*.exe | % {(($_.VersionInfo).FileVersion).replace(",",".")}|measure -Maximum).maximum"works...

View Article


Removing the last octet of an IP address

Hi,To remove the last octet of an IP address I put together the following:$array = New-Object System.Collections.ArrayList $ipaddress.Split(".") | ForEach-Object {$array.Add($_)} | Out-Null...

View Article


".\SomePSScript.ps1" does not run it acts like the .\ was not present.

We use some power shell script in our development process that are not working on 1 of 4 peoples computer... we use a dos batch command line to kick off powershell.exe the command we are running...

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

Create local user via dropdown from .csv

Helloi try to create a powershell script to create local users on Win7.All the user informations are stored in a .csv file.Now I'd like to have a dropdown-menu to choose which user should be created.So...

View Article


Execution Policy Information

In order to run script ps1 files, one must change the execution policy to RemoteSigned.Is there any good (in-depth) information discussing the different execution policies and the risk thereof?Also, is...

View Article

Problem retrieving network printer from a machine

I used the following script code gwmi -class Win32_Printer -Filter 'Shared = "True"'to retrieve the network but it does not get all of the ones..... but it returns the local one...... michael john ocasio

View Article

Capturing log files from multiple .ps1 scripts called from within a .bat file

I am trying to invoke multiple instances of a powershell script and capture individual log files from each of them. I can start the multiple instances by calling 'start powershell' several times, but...

View Article


Powershell Excel Chart - change series colors

I have a Powershell script that reads values from an Excel sheet and then creates a chart based on the values. The script works but I want to change the colors of the series in the bar chart. In VB...

View Article


Different Results Remote vs Local Execution

Hello community,Working with powershell v2, I get hung up on problem.When I run the command "get-childitem -Recurse " on a remote machine using invoke-command, most of the Length values of the output...

View Article

Get-ADGroupMember search by non Domain Admin

I'm trying to run the Get-ADGroupMember command as a non Domain Administrator, but everytime I run it it returns:Get-ADGroupMember : The specified directory service attribute or value does not exist At...

View Article

Powershell Error (show-command)

HelloSudenly I've started getting error in PowerShell (all the consoles: regular user, admin user, ISE with regular user, ISE with admin). And also commands tab in ISE is empty. Tried running with...

View Article

Deciding whether to build a Dot Net application or a Power Shell script

Hello,We have a robust Dot Net development environment and a lot of Dot Net experience. On the other hand, we are novices at Power Shell. Given our expertise in Dot Net, we would prefer to always use...

View Article


Image may be NSFW.
Clik here to view.

Incorrect colours displayed by Write-Host

Much of my PowerShell is reporting and I like to use coloured output to make the results easier to interpret.  I have on numerous occasions run into a problem with the wrong colours being displayed by...

View Article

Script to move data recordings from one server to another automatically

Hi,I have windows server 2003 enterprise edition. The purpose of the server is to record the CCTV footage's and store them on the local hard drive. Currently we are manually copying the recordings to...

View Article


help with powershell

Hi,I'm new with powershell. I have a simple txt file with one line and numerisk value.I need a script that runs every day and change this value with -1.exp. The value is always in line 1old value -...

View Article

Out of office with powershell

Hello. As a Global Admin of my domain I want to know if it is at all possible to set an Out of Office auto-reply through powershell to all my users or a distribution group. I've researched a bit and I...

View Article


Running commands with powershell - randomly need to press Enter for the...

Hi,I have noticed quiet a few times now that when i run some commands in a powershell window, the execution seems to hang and if i press enter the rest of the command is executed.It does it for such as...

View Article

Event Logs Backup/Clear Powershell Script

Greetings,I'm having some trouble with this PS script. I've been using it to remotely store all my event logs onto our file server. For some reason it isn't copying/clearing the SETUP log container....

View Article

Performance of powershell on 64bit on 2008 R2 v. powershell on 32bit on 2003 SP2

Converted a script written in vbscript to powershell v2.0.  When running the script in 32bit mode on Windows Server 2003 SP2 script runs in about 10 minutes and processes 6500 files.  Running the...

View Article
Browsing all 21975 articles
Browse latest View live