Do you know of a quicker solution?
Search found 63 matches
- Wed Jan 10, 2018 1:30 pm
- Forum: PowerShell
- Topic: Get Mapped Drives using .net
- Replies: 14
- Views: 4847
- Wed Jan 10, 2018 7:41 am
- Forum: PowerShell
- Topic: Get Mapped Drives using .net
- Replies: 14
- Views: 4847
Re: Get Mapped Drives using .net
Yup, the user will be logged in.
figured using remote registry would be much faster than the other processes.
figured using remote registry would be much faster than the other processes.
- Tue Jan 09, 2018 8:10 pm
- Forum: PowerShell
- Topic: Get Mapped Drives using .net
- Replies: 14
- Views: 4847
Get Mapped Drives using .net
I have found a script online that does this beautifully https://social.technet.microsoft.com/Forums/windowsserver/en-US/46881e57-62a4-446e-af2d-cd2423e7837f/report-on-remote-users-mapped-drives?forum=winserverpowershell#ef3dc672-65af-4b4d-82cd-c6358ef139e7 2 downfalls. It will not retrieve the drive...
- Fri Nov 17, 2017 9:31 pm
- Forum: PowerShell
- Topic: Ping Until Find
- Replies: 1
- Views: 1204
Ping Until Find
Howdy! I’ve recently stumbled across the job of looking for computers that we should know the location but don’t. So I’m looking to have these computer names in a text file, use get-content to ping each one until found, send ipinfo and logged on user to me via email and then remove the computer from...
- Mon Oct 16, 2017 8:01 pm
- Forum: PowerShell
- Topic: Get-childitem filter down
- Replies: 2
- Views: 1477
Re: Get-childitem filter down
Gasp! I can't believe it was so simple puny brain this will give me a great way to learn regex & replace since my string now looks like this \\server\Data\user\Logs\Application_Run_2017-05-17.log:1317:2017-05-17_13-45-53 : Network Limit = 1 There will literally be thousands of these files and I just...
- Mon Oct 16, 2017 1:27 pm
- Forum: PowerShell
- Topic: Get-childitem filter down
- Replies: 2
- Views: 1477
Get-childitem filter down
So we have 850 plus folders out on a network share that has user data so for example the full path would be \\server1\data\username1 \\server1\data\username2 \\server1\data\username3 \\server1\data\username4 \\server1\data\username5 etc... Insdide each username folder are 4 folders and some text fil...
- Tue Jun 13, 2017 3:49 pm
- Forum: PowerShell
- Topic: Network Adapter Disable
- Replies: 5
- Views: 3388
Re: Network Adapter Disable
The correct syntax would be like this: if($adapters = Get-WmiObject Win32_networkadapter -FIlter 'name like "%wi%"' -ComputerName $ComputerName){ foreach($adapter in $adapters){ Write-Host Disabling $adapter.Name -fore green $adapter.disable() } }else{ Write-Host 'Adapter not found' } Why is the % ...
- Tue Jun 13, 2017 4:33 am
- Forum: PowerShell
- Topic: Use of CSV file to pass arguments
- Replies: 8
- Views: 3062
Re: Use of CSV file to pass arguments
Let me get the proof of concept down and go from there
This is not for normal booting PC's but actually those where the OS is corrupt in someway but we can still access the data in WinPE
This is not for normal booting PC's but actually those where the OS is corrupt in someway but we can still access the data in WinPE
- Mon Jun 12, 2017 10:27 pm
- Forum: PowerShell
- Topic: Use of CSV file to pass arguments
- Replies: 8
- Views: 3062
Re: Use of CSV file to pass arguments
Can those options be used in a form and sent to the Tier 1 techs who are doing our corporate wide refresh?
The form will be ran on the customers machine with a go button to back up data to a share
I didn't post this in the GUI section as the GUI is very simple, a button and a textbox
The form will be ran on the customers machine with a go button to back up data to a share
I didn't post this in the GUI section as the GUI is very simple, a button and a textbox
- Mon Jun 12, 2017 10:07 pm
- Forum: PowerShell
- Topic: Use of CSV file to pass arguments
- Replies: 8
- Views: 3062
Re: Use of CSV file to pass arguments
its proof of concept right now but use of a CSV file would have the directories in column A and robocopy options in Column B
its just so the app doesn't need rewritten in case we need to need to adjust quickly
i prefer its not hard-codedp somewhere within the application
its just so the app doesn't need rewritten in case we need to need to adjust quickly
i prefer its not hard-codedp somewhere within the application