Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant Open Shared Folder or Printer #71

Closed
sinichi19 opened this issue Oct 1, 2020 · 18 comments
Closed

Cant Open Shared Folder or Printer #71

sinichi19 opened this issue Oct 1, 2020 · 18 comments

Comments

@sinichi19
Copy link

sinichi19 commented Oct 1, 2020

Good Day,

To All,

First nice work for the script and thank you very much.

After I run the Sophia-Script 5.0.1 cant open shared folder.
Requesting for your kind assistance if there is need to edit to the script or I need to adjust to the windows.

Expected Behavior:
After run the script remove all unnecessary apps or bloatware windows can shared folder or access by other computer. (private sharing only)

Actual Behavior
Removed all bloatware but cant access the shared folder and printer.

Thank You and More Power

@sinichi19 sinichi19 changed the title Cant Ping and Open Shared Folder Cant Open Shared Folder Oct 1, 2020
@sinichi19 sinichi19 changed the title Cant Open Shared Folder Cant Open Shared Folder or Printer Oct 1, 2020
@sinichi19
Copy link
Author

"Workaround"
Re-add new inbound Firewall rules

Predefined - File and Printer Sharing (SMB-In) then allow the connection restart na computer and the File and Printer sharing is now accessible

@farag2
Copy link
Owner

farag2 commented Oct 1, 2020

Hello! So you enabled SMB1 and it worked? When I read it 2 hours ago I thought
https://github.com/farag2/Windows-10-Sophia-Script/blob/4dec50be79a17b3ecee3b32e987850453ab72aca/Sophia/Sophia.psm1#L3620
is the the cause.

@sinichi19
Copy link
Author

sinichi19 commented Oct 1, 2020

Hello! So you enabled SMB1 and it worked? When I read it 2 hours ago I thought
https://github.com/farag2/Windows-10-Sophia-Script/blob/4dec50be79a17b3ecee3b32e987850453ab72aca/Sophia/Sophia.psm1#L3620

is the the cause.

No sir not the SMB1, after I add this rule and only checked the File and Printer Sharing SMB-In and it worked
image

@farag2
Copy link
Owner

farag2 commented Oct 1, 2020

Is this ruled enabled by default (I can check but later)? I mean did the script disabled it?

@sinichi19
Copy link
Author

sinichi19 commented Oct 1, 2020

Is this ruled enabled by default (I can check but later)? I mean did the script disabled it?

Enable by default and not disabled by the script but after i run the script cant access the shared folder but after I re add the same rules its works

I noticed two issue after i run the script cant ping and cant access the shared folder but after i re add the rules in inbound its works

@farag2
Copy link
Owner

farag2 commented Oct 1, 2020

I will check it on the VM. Are your PCs in an AD? Cos mine are.

@sinichi19
Copy link
Author

I will check it on the VM. Are your PCs in an AD? Cos mine are.

No sir only personal computer or standard setup and only need to share my folder and printer

@farag2
Copy link
Owner

farag2 commented Oct 1, 2020

Is "Work Folders Client" needs to be enabled?

(Get-WindowsOptionalFeature -Online -FeatureName "WorkFolders-Client").State

@sinichi19
Copy link
Author

sinichi19 commented Oct 1, 2020

Is "Work Folders Client" needs to be enabled?

(Get-WindowsOptionalFeature -Online -FeatureName "WorkFolders-Client").State

sorry not expert to that, I need to run that command after i run the script?

only want to achieve is can access the shared folder and printer by other computer in the same local network after i run the script

@farag2
Copy link
Owner

farag2 commented Oct 1, 2020

No. It indicates the state of the "WorkFolders-Client" feature: enabled or disabled. Run it and send the output. Just for a test purpose.

@sinichi19
Copy link
Author

No. It indicates the state of the "WorkFolders-Client" feature: enabled or disabled. Run it and send the output. Just for a test purpose.

oh sorry ok i will try, but i think tommorow will send the output after work

thank you for your kind assistance, God bless and keep safe

@farag2
Copy link
Owner

farag2 commented Oct 1, 2020

Yeah, I have to test at home, cos' I'm able to ping PCs in my network even on a VM without "File and Printers Sharing" enabled.

@sinichi19
Copy link
Author

sinichi19 commented Oct 2, 2020

Yeah, I have to test at home, cos' I'm able to ping PCs in my network even on a VM without "File and Printers Sharing" enabled.

(Get-WindowsOptionalFeature -Online -FeatureName "WorkFolders-Client").State
Disabled

that's the result sir after I run the script and the command you mentioned.


Fresh installed Windows 10 2004, run the script and still experienced cant access shared folder or printer (local network) and cant ping.

@farag2
Copy link
Owner

farag2 commented Oct 2, 2020

Yep. Tested at home. I need to Google )

@sinichi19
Copy link
Author

Yep. Tested at home. I need to Google )

thank you sir, more power and god bless

@farag2
Copy link
Owner

farag2 commented Oct 7, 2020

$FirewallRules = @(
	# File and printer sharing
	"@FirewallAPI.dll,-32752",

	# Network discovery
	"@FirewallAPI.dll,-28502"
)
Set-NetFirewallRule -Group $FirewallRules -Profile Private -Enabled True
Set-NetFirewallRule -Profile Public, Private -Name FPS-SMB-In-TCP -Enabled True
Set-NetConnectionProfile -NetworkCategory Private

Think I've fixed it.

@sinichi19
Copy link
Author

$FirewallRules = @(
	# File and printer sharing
	"@FirewallAPI.dll,-32752",

	# Network discovery
	"@FirewallAPI.dll,-28502"
)
Set-NetFirewallRule -Group $FirewallRules -Profile Private -Enabled True
Set-NetFirewallRule -Profile Public, Private -Name FPS-SMB-In-TCP -Enabled True
Set-NetConnectionProfile -NetworkCategory Private

Think I've fixed it.

Nice, I will try this today , Thank you Sir

@sinichi19
Copy link
Author

$FirewallRules = @(
	# File and printer sharing
	"@FirewallAPI.dll,-32752",

	# Network discovery
	"@FirewallAPI.dll,-28502"
)
Set-NetFirewallRule -Group $FirewallRules -Profile Private -Enabled True
Set-NetFirewallRule -Profile Public, Private -Name FPS-SMB-In-TCP -Enabled True
Set-NetConnectionProfile -NetworkCategory Private

Think I've fixed it.

Nice, I will try this today , Thank you Sir

Sir @farag2 already tested and can now access the shared folder also can ping the computer after added to the script (Set-NetFirewallRule -Profile Public, Private -Name FPS-SMB-In-TCP -Enabled True)

Thank You and More Power

@farag2 farag2 closed this as completed Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants