215HAN Posted July 12, 2023 Posted July 12, 2023 Hi, Hoping you can help/assist. I am in the process of setting up a new server for 1 of our schools. I am stumped at the moment as to why I can't seem to access the C drive using either the IP address or name which is \\Hostname\C$. Can you advise of anything obvious as to why this is or what I've missed or need to enable to be able to access this. Currently stumped at the moment. Thanks in advance.
speakercon Posted July 12, 2023 Posted July 12, 2023 File and printer sharing for domain access in allow apps?
215HAN Posted July 12, 2023 Author Posted July 12, 2023 How do I do this? Please can you advise and also note it is Hyper V Server 2019 which is all command based I’m using. Thanks
215HAN Posted July 12, 2023 Author Posted July 12, 2023 (edited) See below. That is the error I am getting. Edited July 12, 2023 by 215HAN
willtech Posted July 12, 2023 Posted July 12, 2023 How do I do this? Please can you advise and also note it is Hyper V Server 2019 which is all command based I’m using. Thanks Command I believe is: Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled True -Profile Any This should do it on all profiles. 1
215HAN Posted July 12, 2023 Author Posted July 12, 2023 Thank you for your response. Just tried the above command but still getting that same error. Anything else I'm missing. I feel its something obvious but I can't see it
Primus Posted July 12, 2023 Posted July 12, 2023 Is there a vSwitch in place? If so delete it and recreate it. 1
215HAN Posted July 12, 2023 Author Posted July 12, 2023 Deleted and created a new vSwitch (External Network) Still getting the same error Should I have created this a External or should there be bother External and Internal?
Primus Posted July 12, 2023 Posted July 12, 2023 Are you allowing the management OS to share the NIC bound to the vSwitch?
215HAN Posted July 12, 2023 Author Posted July 12, 2023 Tbh I'm not too sure if it is being shared. How do I go about checking this? Thanks
Primus Posted July 13, 2023 Posted July 13, 2023 (edited) New-VMSwitch -Name "vEthernet" -NetAdapterName Ethernet -AllowManagementOS:$true This PowerShell command creates a new virtual switch with the name vEthernet. The -NetAdapterName parameter is used to specify the physical network adapter to bind. The -AllowManagementOS parameter with a $true value is used to allow the host OS to share the virtual switch and physical NIC with the VMs. Edited July 13, 2023 by Primus
215HAN Posted July 13, 2023 Author Posted July 13, 2023 @Primus - I will try the above and let you know Yes I can ping both IP and name
215HAN Posted July 13, 2023 Author Posted July 13, 2023 Could it be that I am missing a windows feature that needs installing via power shell?
PotNoodleTech Posted July 13, 2023 Posted July 13, 2023 Is the server joined to the domain? i.e is it recognising your account as a local administrator? Only local admins / domain admins can view the drive c$
Tones Posted July 13, 2023 Posted July 13, 2023 (edited) I used sconfig and setup the remote options in there and you can add specific users you want to manage the host here. These are the commands I used after sconfig: Enable-WSManCredSSP -Role Server Enable-PSRemoting Set-NetFirewallRule -DisplayGroup "File And Printer Sharing" -Enabled True -Profile Domain Specifically the last one allows c$ share access. As PotNoodleTech asked - is it on the domain? Does the user you're using have access? Edited July 13, 2023 by Tones
215HAN Posted July 13, 2023 Author Posted July 13, 2023 Yes, it’s on the domain and I am a domain admin. I’ve managed to get it working. Appreciate all your help with this. Thanks again.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now