In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Create a temporary network drive map:
(New-Object -ComObject WScript.Network).MapNetworkDrive("Z:", "\\TEST-PC\USERS")
Create a persistent network drive map:
# New-PSDrive plus the-Persist parameter makes the drive visible outside PowerShell.
#To actually create a permanent network drive, make sure you add-Scope Global./
#If New-PSDrive runs outside of global scope (for example, in a script), the drive will only appear in the File Manager while the script is running.
New-PSDrive -Name Z -PSProvider FileSystem -Root \\TEST-PC\USERS -Persist -Scope GlobalPS C:\> $C = Get-CredentialPS C:\> New-PSDrive -Name V -PSProvider FileSystem -Root \\10.190.10.240\jhis -Persist -Scope Global -Credential $C
Solution:
1. network test
> ping 10.190.10.240> Test-NetConncetion 10.190.10.240 -Port 445> [Environment]::GetLogicalDrives()
2. Create persistent V-disk mappings
> New-PSDrive -Name V -PSProvider FileSystem -Root \\10.190.10.240\jhis -Persist -Scope Global
3. Create temporary V-disk mappings
Click on "this computer", right click on "this computer" on the left, select "map network drive", establish map to V drive.
Notes:
When an ordinary user logs in, the disk map created is only seen by the user; if the user has administrator privileges, the disk map created by opening the PS command prompt by the administrator can not be seen by the ordinary user after creation, and can only be seen and accessed by opening the PS command prompt by the administrator.
If the command script for invoking disk mapping is executed in the task plan, if the mapping disk is mapped by ordinary user, run it as ordinary user; if the mapping disk is mapped by administrator permission, check Run with highest permission when running. And select the operating system version of the script running as the current version in the same interface.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.