In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.