Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Browsing all 6937 articles
Browse latest View live

nike air max tn homme nike air max 90 blanc

Features and overviews of Adidas Ciero: Adidas is the largest manufacturer of sportswear in Europe and he is the second biggest manufacturer of sportswear throughout the world. Adidas, the great shoe...

View Article


moving items between volumes does not work with move-item

Hi guys,I'm trying to make a script to move item (files and folders) from one Volume to another (C:\ to D:\)Unfortunately the cmdlet move-item doesn't support movers between different volumes??Any ideo...

View Article


creating two names for a function instead of creating the same function twice...

helloin my test lab, i created a function to simplify disjoining systems from active directory & placed this function in $pshome\profile.ps1 in all systems.Function UnJoin {Write-Host -f y...

View Article

Modifying sAMACCOUNTNAME

Hi Guys,I am new to powershell and scripting in general. I need to modify attribute sAMACCOUNTName on certain users. I have compiled the users in a excel sheet. The entries appear as display name...

View Article

Modifying currently open Excel documents with PowerShell?

First of all apologies if it's not the right forum... new here. I'm trying to modify a currently open (as in user is looking at the document) with PowerShell, and nothing I've tried is working. I can...

View Article


Replacing hex characters in a string

I apologize for the very basic question.In need to replace all che occurencies of the HEX '0A' character in a string with a different character, let's say HEX '20' or maybe 2 or mote characters, let's...

View Article

HOW TO ADD ROWS INTO MULTIPLE CSV FILES IN A SINGLE DIRECTORY?

Hello,I have thousands of CSV files in a single directory. I'm looking for a way how to add 2 columns (including headers) to each file.There are some conditions:1. There is always 0 value in column...

View Article

Image may be NSFW.
Clik here to view.

Which Execution policy do you recommend?

I work in a fortune 500 and the server admin's want to lock down everything. Powershell is currently configured to be restricted. Should I push to configure PS to be unrestricted or just leave it...

View Article


Tip Suggestion - Determine IP of source RDP and User

HiWe have a number of build and test machines which are logged onto using generic credentials.It would be nice if a user can determine the real user logged onto a machine. i.e.end point RDP and...

View Article


How to enable and configure LAN routing

Hi, I have installed Windows Server 2012R2 which act as a router - this is a testing enviroment.I know how to configure routering throug GUI but I want to do it from powershell.My server has three...

View Article

A Script to Generate A Script - Need Some Guidance

Hey All,I have a little problem, mainly because my PowerShell skills are newbie at best, in getting my script to output to a new .ps1 file.Basically, what I am trying to do is to capture the user...

View Article

Range Operator

Hi I am looking for range operator for decimal numbersUsually for getting the numbers from 1 to 100. We can write it as1..100I am looking for something from 0.00 to 10.00.0 -10 with two decimals. I am...

View Article

Lastlogontimestamp

Need help with output to csv and also need to export ipv4address, managedby attributes within this script script ouptuts computer name and lastlogonimport-module ActiveDirectory$dcs = Get-ADComputer...

View Article


Create CSV and rename some Labels

Greetings,I've been reading on/off all day to find a way to manupulate the data I'm pulling from my script.  I'm somewhat of a noob but know how to use what I see for my own use.I know this scrip can...

View Article

how to find all Quest One dynamic groups

we use Quest One ActiveRoles to manages some of our dynamic distribution and Security groups. I would like to find all groups that are managed by Quest and tried using Get-QADGroup "groupname" | FL to...

View Article


How to get the currently installed programs list as the same as appwiz.cpl...

Under path "Control Panel\Programs\Programs and Features", here is a list to show the currently installed programs, now I want to get the list with powershell, I tried below two commands, but they...

View Article

many functions inside one if statement

Hi friendsi have created a customized powershell profile (profile.ps1 file.)i will use this file in servers which some of them are Domain controller & some of them are not.since there are many...

View Article


Inbox Rules with multiple email-addresses in From parameter

Exchange 2010 SP3. I need to use the -From parameter in the Set-InboxRule Cmdlet with more than one address, but I can't get it to work. This is how I would have hoped it would work:Set-InboxRule...

View Article

Uninstalling Google Toolbar

I would think this shouldn't be too hard, but apparently I'm doing something wrong, can anyone give me any suggestions please?$appname = "Google Toolbar for Internet Explorer"$app = get-wmiobject...

View Article

Set Environment Variable based on WMI data

Basic Use Case for what I need to do:I need to query the local drives and find the drive with the most free space and then set a system environment variable for another outside process to read.I've got...

View Article
Browsing all 6937 articles
Browse latest View live