Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2314

Lokales Laufwerk wird erst nach einem Zugriff darauf sichtbar

$
0
0

Hoi zäme

Ich entwickle ein PowerShell-Skript für einen Server. Bei dem wird aber das lokale D-Laufwerk erst sichtbar, wenn ich schon darauf zugegriffen habe. Woran liegt das bzw. wie kann ich PowerShell dazu bringen, seine Laufwerke richtig zu sortieren?

Liebe Grüsse

Thiemo

PS C:\Users\s00489> Get-PSDrive

Name           Used (GB)     Free (GB) Provider      Root
----           ---------     --------- --------      ----
Alias                                  Alias
C                  29.65         38.68 FileSystem    C:\
Cert                                   Certificate   \
Env                                    Environment
Function                               Function
HKCU                                   Registry      HKEY_CURRENT_USER
HKLM                                   Registry      HKEY_LOCAL_MACHINE
I                 217.35        132.65 FileSystem    I:\
K                 217.35        132.65 FileSystem    K:\
L                 217.35        132.65 FileSystem    L:\
Variable                               Variable
WSMan                                  WSMan


PS C:\Users\s00489> Get-PSDrive

Name           Used (GB)     Free (GB) Provider      Root
----           ---------     --------- --------      ----
Alias                                  Alias
C                  29.65         38.68 FileSystem    C:\
Cert                                   Certificate   \
Env                                    Environment
Function                               Function
HKCU                                   Registry      HKEY_CURRENT_USER
HKLM                                   Registry      HKEY_LOCAL_MACHINE
I                 217.35        132.65 FileSystem    I:\
K                 217.35        132.65 FileSystem    K:\
L                 217.35        132.65 FileSystem    L:\
Variable                               Variable
WSMan                                  WSMan


PS C:\Users\s00489> Get-Item 'D:'


    Directory:


Mode                LastWriteTime     Length Name
----                -------------     ------ ----
d--hs        25.02.2015     15:16            D:\


PS C:\Users\s00489> Get-PSDrive

Name           Used (GB)     Free (GB) Provider      Root
----           ---------     --------- --------      ----
Alias                                  Alias
C                  29.65         38.68 FileSystem    C:\
Cert                                   Certificate   \
D                 119.01        154.39 FileSystem    D:\Env                                    Environment
Function                               Function
HKCU                                   Registry      HKEY_CURRENT_USER
HKLM                                   Registry      HKEY_LOCAL_MACHINE
I                 217.35        132.65 FileSystem    I:\
K                 217.35        132.65 FileSystem    K:\
L                 217.35        132.65 FileSystem    L:\
Variable                               Variable
WSMan                                  WSMan


PS C:\Users\s00489>

Viewing all articles
Browse latest Browse all 2314


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