Quantcast
Channel: PowerShell
Browsing all 15370 articles
Browse latest View live
↧

How do I get win32_NetworkAdapter to report NIC speed as 1Gb or 100mb

Hi,I have a fairly simple script that connects to computers in a txt file, and then reports the System, Name, NetConnectionID and Speed, however the speed is reported as 100000000 or 10000000, I would...

View Article


Powershell Script to delete files after "X" days pulling folder paths from a CSV

This is the first time I am posting here so please forgive my formatting:I am using a script to remove files from a specific folder that have a specific extension after a given amount of time. When I...

View Article


Help with creating shortcut

Hi all,I am trying to create a shortcut on all user's desktops that opens a certain URL in Internet Explorer but in a certain size, with no menu bar and with a scroll bar.We currently have this enabled...

View Article

Image may be NSFW.
Clik here to view.

open powershell to a specific folder

Good morning.  i am trying to run a scheduled task and have a desire to run a script and have powershell in a specific folder other than default when i open powershell.  I am brain numb on which...

View Article

Powershell to Get Remote Computer Media Type

Hello Spiceheads,Thank you in advance because 90% of my questions have been answered in the SW Community.Here is the deal. I have been tasked to find out which computers on the domain (roughly 150)...

View Article


Can you have two options for one case in a Switch Statement

So say I want 1 & 2 to run something.ps1 and I want 3 to write something. This is incorrect code but basically what I want:Powershell$path='Z:\New Folder\New Folder\My...

View Article

Write Output to File

Hell everyone.I'm doing an import into SQL in Powershell and I need a little assistance to learn how to write the results to a file called success.txt.The...

View Article

Image may be NSFW.
Clik here to view.

powershell question

Hello experts,how to take result of previous command. i am running the below commandget-cmcollection -name "test"it get me all details about collectionthen I want to use the value of  collection id to...

View Article


Running powershell scripts on local machine

Hi, I am fairly new to all this PowerShell stuff. Can someone tell me the best way to create a PowerShell Script which includes admin rights. (if it is required)Let me explain: I have a problem with my...

View Article


Help with import csv with users and exporting mailbox permission results

Hello,I am new to powershelland have following task at hand that I can use your help.I got a xls file with about 100 mailboxes sam account name column and I want to get results of who has full mailbox...

View Article

PowerShell

Hi, Where is the best place to learn more about PowerShell (except YouTube)

View Article

Send Email Attachemnt with Powershell

I have a directory that will get populated every night with a date stamped file.What would be the best way to use powershell to send an email that has the latest file attached to it?

View Article

Help with getting powershell script to output to csv

Hello,I have this script that is doing the job that I need it to do, however I cannot for the life of me figure out how to replace the write-output to export-csv and make it work. Here is what I am...

View Article


Script to set permissions taking WEEKS to finish

I'm trying to give our Service Desk guys full control of our user profile and home directories by running a PowerShell script. This is the script I'm...

View Article

Scheduled task not running

Ok, I have 2 servers at two different sites running skype for business. I've got a script going that I've cobbled together to automatically divert helpdesk calls to one site every other day. It's...

View Article


Output results in for loop to txt file

I'm trying to get this script to output the results to a txt file, but I still have a lot to learn about Powershell. This includes how to output the results of a for loop to a txt file. Any help would...

View Article

Correcting folder redirection exclusive rights permissions

When our network was setup a GPO was created for folder redirection where the users have been granted exclusive rights to their Favorites folder (all the other folders were set properly without this...

View Article


Search for User's using ADSI powershell

Hello,I'm trying to perform a search using [adsi] in powershell that will look at the CN from a CSV file and output the...

View Article

unexpected token in my script

I try to script a log which gets a program name and version and writes it to a...

View Article

Win 10 Script to enable/disable network adapters

We have a situation with a PC that is used by the public at certain times. We do not want the public to be able to write data from our PC to the Internet (Dropbox, email, etc) as they have to pay for...

View Article
Browsing all 15370 articles
Browse latest View live


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