Quantcast
Channel: PowerShell General
Browsing all 10624 articles
Browse latest View live

NA

NA

View Article


Powershell Script to relocate User's Profile folder during Deprovision

Hi,I'm trying to write a script which, upon execution, move a user's profile folder from it's original location (in the \\server1\profile$ folder) into a sub folder in that location...

View Article


Can't get the Invoke-WmiMethod to work

The HP Display LiteSaver utility came with my monitor and stated:HP Display LiteSaver installs a WMI Provider which creates a WMI object called Win32_DisplayPowerSaving in the root\CIMV2 namespace.The...

View Article

How can I used Error Traping / Error Action with .NET type

HelloI wounder if someone can help me with the following question please.If I do the following[ System.IO.Directory]::EnumerateFiles("\\Server1\Directory1","*.ps1",AllDirectories)I get a list of files...

View Article

ADBackup Bitlocker

hello all,  i am doing the following:Invoke-Command -ComputerName $computername -ScriptBlock { manage-bde -protectors -get e: }to get the bitlocker information, output is: Volume E: [xxx]Alle...

View Article


Functions of Functions

Sorry my terminology may be off as I'm learning still!I'm writing code where I am going to reuse chunks of code in my script so want to make them into functions.For example I can now easily add labels...

View Article

Powershell and .Net Framework

Hello everyone,First of all i would like to thank you guys because it's been a while that i'm reading the daily tips that you send and i find it really great to keep my mind into Powershell.I...

View Article

PowerShell - Parameter Question for a Newbie

Hello, I am going trough an online course which is teaching me how to handle files with PHP. The chapter I am in right now has introduced Windows Powershell as a way to list file permission settings....

View Article


How to update sql and add to sql

I have created a table in SQL with the following command:  (bear with me, I am a newbie and after reading powershell in a month of lunches was able to do the following command successfully   Thanks,...

View Article


Converting PSCustomObject to String

Hello everyone and thank you for taking the time to read my post.   As my subject states, I'm looking to convert a PSCustomObject type to a String type.  At least, I think that is what I need to do....

View Article

Executing Powershell through Batch

I am new to powershell and wanted to automate the existing .ps1 script using the Batch file. I wanted to seek help for the execution of Powershell through Batch script as my existing script didn't...

View Article

Searching for SSN with powershell

Experts, I'm very new to powershell and scripting.  I'm trying to write a script to search my network for PII; starting with SSN's.  I need it to tell me where the files are exactly and I also need to...

View Article

Xenapp application

Can powershell show how many users are using applications in a xenapp farmLike Outlook 3Excel 22 

View Article


Function for CRC32.

Hi,Could any one post a function which generates a Hexa Decimal CRC32 value for a file using powershell.

View Article

windows 2012 & PowerShell commands

I was told in June while waiting in line at TechEd that when you execute a command in windows 2012 it is stored in a PowerShell format somewhere in a directory.  Does anyone know where this folder...

View Article


How to find nth word in a line or string?

I have bunch of log files and want to extract certain words out of them, so they can be formatted into a summarized table. They are all similar enough to be able to know which word in a line that I...

View Article

Accessing Oracle Database 11g with Powershell

Hi there Has anyone any experience with accessing a oracle 11g database in powershell? Is there a module which can be downloaded in order to access a oracle database. I want to extract data from a...

View Article


quotes within quotes witha variable.

Hi allI am having an issue where i need to add " within an output this is due to spaces in the names. If i do not add the " i get what i need but since there are spaces in the names this will fail here...

View Article

PowerShell v3.0 HTML Parsing

I'm trying to build a new object with properties from this webpage:http://us.battle.net/sc2/en/game/unit/(Heart of the Swarm)Ultimately I would like something like the following for every unit:unit...

View Article

Help with getting date of last Windows Update from a list of several computers?

I have a txt file with a list of a jillion or so computers. What I'm trying to do is simply get the date of the last time Windows Update was run on each machine, so 1 line per machine.I started out...

View Article
Browsing all 10624 articles
Browse latest View live